package flc.ast.bean;

import androidx.annotation.Keep;
import androidx.annotation.Nullable;

@Keep
public class MyCollectBean {

    private String path;
    private boolean isSelected;

    public MyCollectBean(String path, boolean isSelected) {
        this.path = path;
        this.isSelected = isSelected;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    @Override
    public boolean equals(@Nullable Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        MyCollectBean other = (MyCollectBean) obj;
        if (other.getPath() == null) {
            return false;
        }
        if (path == null) {
            if (other.path != null)
                return false;
        } else if (!path.equals(other.path))
            return false;
        return true;
    }
}
